JavaScript is used for dynamic changes

Javascript an change HTML attribute values.

In this case Javascript changes the value of the scr (source) attribute of an image.